package com.zlt.bkparking.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserVipExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserVipExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUvIdIsNull() {
            addCriterion("uv_id is null");
            return (Criteria) this;
        }

        public Criteria andUvIdIsNotNull() {
            addCriterion("uv_id is not null");
            return (Criteria) this;
        }

        public Criteria andUvIdEqualTo(Long value) {
            addCriterion("uv_id =", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdNotEqualTo(Long value) {
            addCriterion("uv_id <>", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdGreaterThan(Long value) {
            addCriterion("uv_id >", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdGreaterThanOrEqualTo(Long value) {
            addCriterion("uv_id >=", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdLessThan(Long value) {
            addCriterion("uv_id <", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdLessThanOrEqualTo(Long value) {
            addCriterion("uv_id <=", value, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdIn(List<Long> values) {
            addCriterion("uv_id in", values, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdNotIn(List<Long> values) {
            addCriterion("uv_id not in", values, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdBetween(Long value1, Long value2) {
            addCriterion("uv_id between", value1, value2, "uvId");
            return (Criteria) this;
        }

        public Criteria andUvIdNotBetween(Long value1, Long value2) {
            addCriterion("uv_id not between", value1, value2, "uvId");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(String value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(String value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(String value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(String value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(String value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(String value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLike(String value) {
            addCriterion("au_id like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotLike(String value) {
            addCriterion("au_id not like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<String> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<String> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(String value1, String value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(String value1, String value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andVtIdIsNull() {
            addCriterion("vt_id is null");
            return (Criteria) this;
        }

        public Criteria andVtIdIsNotNull() {
            addCriterion("vt_id is not null");
            return (Criteria) this;
        }

        public Criteria andVtIdEqualTo(Integer value) {
            addCriterion("vt_id =", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotEqualTo(Integer value) {
            addCriterion("vt_id <>", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThan(Integer value) {
            addCriterion("vt_id >", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vt_id >=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThan(Integer value) {
            addCriterion("vt_id <", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThanOrEqualTo(Integer value) {
            addCriterion("vt_id <=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdIn(List<Integer> values) {
            addCriterion("vt_id in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotIn(List<Integer> values) {
            addCriterion("vt_id not in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdBetween(Integer value1, Integer value2) {
            addCriterion("vt_id between", value1, value2, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vt_id not between", value1, value2, "vtId");
            return (Criteria) this;
        }

        public Criteria andUvStartIsNull() {
            addCriterion("uv_start is null");
            return (Criteria) this;
        }

        public Criteria andUvStartIsNotNull() {
            addCriterion("uv_start is not null");
            return (Criteria) this;
        }

        public Criteria andUvStartEqualTo(Date value) {
            addCriterion("uv_start =", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartNotEqualTo(Date value) {
            addCriterion("uv_start <>", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartGreaterThan(Date value) {
            addCriterion("uv_start >", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartGreaterThanOrEqualTo(Date value) {
            addCriterion("uv_start >=", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartLessThan(Date value) {
            addCriterion("uv_start <", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartLessThanOrEqualTo(Date value) {
            addCriterion("uv_start <=", value, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartIn(List<Date> values) {
            addCriterion("uv_start in", values, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartNotIn(List<Date> values) {
            addCriterion("uv_start not in", values, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartBetween(Date value1, Date value2) {
            addCriterion("uv_start between", value1, value2, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvStartNotBetween(Date value1, Date value2) {
            addCriterion("uv_start not between", value1, value2, "uvStart");
            return (Criteria) this;
        }

        public Criteria andUvEndIsNull() {
            addCriterion("uv_end is null");
            return (Criteria) this;
        }

        public Criteria andUvEndIsNotNull() {
            addCriterion("uv_end is not null");
            return (Criteria) this;
        }

        public Criteria andUvEndEqualTo(Date value) {
            addCriterion("uv_end =", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndNotEqualTo(Date value) {
            addCriterion("uv_end <>", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndGreaterThan(Date value) {
            addCriterion("uv_end >", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndGreaterThanOrEqualTo(Date value) {
            addCriterion("uv_end >=", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndLessThan(Date value) {
            addCriterion("uv_end <", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndLessThanOrEqualTo(Date value) {
            addCriterion("uv_end <=", value, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndIn(List<Date> values) {
            addCriterion("uv_end in", values, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndNotIn(List<Date> values) {
            addCriterion("uv_end not in", values, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndBetween(Date value1, Date value2) {
            addCriterion("uv_end between", value1, value2, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvEndNotBetween(Date value1, Date value2) {
            addCriterion("uv_end not between", value1, value2, "uvEnd");
            return (Criteria) this;
        }

        public Criteria andUvStateIsNull() {
            addCriterion("uv_state is null");
            return (Criteria) this;
        }

        public Criteria andUvStateIsNotNull() {
            addCriterion("uv_state is not null");
            return (Criteria) this;
        }

        public Criteria andUvStateEqualTo(Byte value) {
            addCriterion("uv_state =", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateNotEqualTo(Byte value) {
            addCriterion("uv_state <>", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateGreaterThan(Byte value) {
            addCriterion("uv_state >", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("uv_state >=", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateLessThan(Byte value) {
            addCriterion("uv_state <", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateLessThanOrEqualTo(Byte value) {
            addCriterion("uv_state <=", value, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateIn(List<Byte> values) {
            addCriterion("uv_state in", values, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateNotIn(List<Byte> values) {
            addCriterion("uv_state not in", values, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateBetween(Byte value1, Byte value2) {
            addCriterion("uv_state between", value1, value2, "uvState");
            return (Criteria) this;
        }

        public Criteria andUvStateNotBetween(Byte value1, Byte value2) {
            addCriterion("uv_state not between", value1, value2, "uvState");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}